package com.kangye.learnstudent.service.impl;

import com.kangye.learnstudent.entity.Subject;
import com.kangye.learnstudent.entity.Video;
import com.kangye.learnstudent.mapper.VideoMapper;
import com.kangye.learnstudent.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @program: learndeduo
 * @description: 实现视频逻辑接口
 * @author: 索腾龙
 * @create: 2021-05-17 11:09
 **/
@Service
@Transactional
public class VideoServiceImpl implements VideoService {
//    调用注入VideoMapper接口 调用里面的方法
    @Autowired
    private VideoMapper videoMapper;

    @Override
    public List<Video> VideoList(String subjectName) {

        // 调用VideoMapper接口里面的方法
        return videoMapper.VideoList(subjectName);
    }

    @Override
    public List<Subject> subjectNameList() {
        return videoMapper.subjectNameList();
    }
    @Override
    public List<Video> vido() {
        return videoMapper.vido();
    }
}